from django.db import models

# Create your models here.


class ATOP_CD_TEMPLATE(models.Model):
    """操作模版表"""
    template_id = models.CharField(max_length=32, unique=False, null=False)
    template_name = models.CharField(max_length=32, unique=False, null=False)
    template_desc = models.TextField(max_length=1024, unique=False, null=False)
    template_module = models.CharField(max_length=32, unique=False, null=False)
    tag_str = models.CharField(max_length=256, unique=False, null=False)
    enabled = models.CharField(max_length=1, unique=False, null=False)
    template_flow = models.CharField(max_length=64, unique=False, null=False)
    create_by = models.CharField(max_length=32, unique=False, null=False)
    create_time = models.DateTimeField(unique=False, null=False, auto_now_add=True)
    modify_by = models.CharField(max_length=32, unique=False, null=False)
    modify_time = models.DateTimeField(unique=False, null=False)
    version = models.IntegerField(unique=False, null=False)
    is_current = models.CharField(max_length=1, unique=False, null=False)
    province = models.CharField(max_length=32, unique=False, null=False)

    class Meta:
        db_table = 'ATOP_CD_TEMPLATE'